//
//  BVGoodFeelingCell1.m
//  XiangYu
//
//  Created by YYKJ on 2017/6/8.
//  Copyright © 2017年 YYKJ. All rights reserved.
//
//  有好感的cell

#import "BVGoodFeelingCell1.h"

@implementation BVGoodFeelingCell1

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self layoutUI];
    }
    return self;
}

-(void)layoutUI{
    
    self.img = [[UIImageView alloc]init];
    [self.contentView addSubview:self.img];
    [self.img.layer setMasksToBounds:YES];
    [self.img.layer setCornerRadius:3.0];
    [self.img setContentMode:UIViewContentModeScaleAspectFill];
    self.img.sd_layout.
    topSpaceToView(self.contentView,10)
    .bottomSpaceToView(self.contentView,10)
    .leftSpaceToView(self.contentView,10)
    .widthEqualToHeight();
    [self.img setImage:[UIImage imageNamed:@"9358d"]];
    
    self.nickNameLb = [[UILabel alloc]init];
    [self.contentView addSubview:self.nickNameLb];
    [self.nickNameLb setTextColor:[UIColor BVTextGrayColor]];
    [self.nickNameLb setTextAlignment:NSTextAlignmentLeft];
    [self.nickNameLb setFont:[UIFont systemFontOfSize:14]];
    self.nickNameLb.sd_layout
    .topSpaceToView(self.contentView,10)
    .leftSpaceToView(_img,10)
    .heightIs(20)
    .widthIs(80);
    [self.nickNameLb setText:@"王小花"];
    
    self.ageLb = [[UILabel alloc]init];
    [self.contentView addSubview:self.ageLb];
    [self.ageLb setTextColor:[UIColor BVTextGrayColor]];
    [self.ageLb setTextAlignment:NSTextAlignmentLeft];
    [self.ageLb setFont:[UIFont systemFontOfSize:12]];
    self.ageLb.sd_layout
    .topSpaceToView(self.nickNameLb,5)
    .leftSpaceToView(_img,10)
    .heightIs(20)
    .widthIs(80);
    [self.ageLb setText:@"年龄: 17"];
    
    self.addressLb = [[UILabel alloc]init];
    [self.contentView addSubview:self.addressLb];
    [self.addressLb setTextColor:[UIColor BVTextGrayColor]];
    [self.addressLb setTextAlignment:NSTextAlignmentLeft];
    [self.addressLb setFont:[UIFont systemFontOfSize:12]];
    self.addressLb.sd_layout
    .topSpaceToView(self.ageLb,5)
    .leftSpaceToView(_img,10)
    .heightIs(20)
    .widthIs(100);
    [self.addressLb setText:@"郑州市 - 金水区"];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
